﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="inc/home::header">
</head>
<link type="text/css" th:href="@{/css/content.css}" rel="stylesheet" />

<body>
	<div class="back"  onclick="location='/index'">
		<img src="images/back.png" />
	</div>
	<div th:include="header :: header"></div>
	<div class="header-title">
		<span>我的计划</span>
		<a href="plan-wwctj.html?myp=1"><div class="zbdzll-tj"></div></a>
	</div>
	<div class="spare-a">
			<div class="spare-al">
				<div style="height:10px"></div>
				<ul>
					<a onclick="loadPage('/planType')"    shiro:hasPermission="sys:plan:plan">
					<li >
						<p>计划制定</p>
					</li>
					</a>
				 <a onclick="loadPage('/myplan')"  shiro:hasPermission="sys:myplan:myplan">
					<li class="active">
						<p>我的计划</p>
					</li>
					</a>
				</ul>
			</div>
			<div class="spare-ar">
				<div class="spare-ara">
						<div class="plan">
						<div class="planl planl-task">
							<ul>
								<li  th:each="t,iterStat: ${PlanTypes}"     >
								    <a  href="javascript:void(0);"  th:id="${t.id}"  th:onclick="'loadPage(\'/myplan\',\''+${t.id}+'\');'" th:class="${t.id==typeId}? 'active' : ''"   style="border-bottom-left-radius:5px;border-top-left-radius:5px" th:text="${t.TypeName}">计划类</a>
							    </li>
							</ul>
						</div>
						<div class="spare-ara-ar">
							<div class="spare-ara-ar">
							<a href="#" class="spare-tj" onclick="Wcrw('/home/myPlanState')">完成计划</a>
						</div> </div>
					</div>
					<div id="kk">
			      <div class="plan-aa">已延后</div>
					<div class="documentation nottake">
						<ul>
							<a href="#"  th:each="m : ${plansOut}" >
							<li th:id="${m.id}" >
								<div class="paper-a"  th:text="任务名称：+${m.name}" >任务名称：版本发布计划</div>
								<div class="myplan-d" >状态：<span style="color:#ff0000" th:text="${m.taskState}">延期处理</span></div>
								<div class="paper-c" th:text="创建日期：+${m.createDate}">创建日期：2018-01-22 17:00:00</div>
								<div class="documentation-check"></div>
							</li>
							</a>
							
						</ul>
					</div>
					<div class="plan-aa">进行中<span th:text="${title}"></span></div>
					<div class="documentation nottake">
						<ul>
							<a href="#"  th:each="n : ${plansIn}">
							<li th:id="${n.id}" >
								<div class="paper-a"  th:text="任务名称：+${n.name}" >任务名称：版本发布计划</div>
								<div class="myplan-d" >状态：<span  th:style="${n.taskState=='未完成'}?'color:#63dd00':'color:#ccc'"       th:text="${n.taskState}">未完成</span></div>
								<div class="paper-c" th:text="创建日期：+${n.createDate}">创建日期：2018-01-22 17:00:00</div>
								<div class="documentation-check"></div>							
							</li>
							</a>							
						</ul>
					</div>
				</div>
				</div>
				</div>
			</div>	
			
	<!--shiro控制bootstraptable行内按钮看见性 来自的创新方案 -->
	<div>
		<script type="text/javascript">
			var s_plan = 'hidden';
			var s_myplan = 'hidden';
		</script>
	</div>
	<div shiro:hasPermission="sys:plan:plan">
		<script type="text/javascript">
			s_plan = '';
		</script>
	</div>
	<div shiro:hasPermission="sys:myplan:myplan">
		<script type="text/javascript">
			s_myplan = '';
		</script>
	</div>
			
			
</body>
<script type="text/javascript" th:src="@{/home/js/myplan.js}"></script>
<script th:inline="javascript">
	/*<![CDATA[*/
	 //默认加载   每页显示数据 12              
	$(function() {
		if(s_myplan=="hidden"){
			loadPage('/planType');
		}
	});
	/*]]>*/
</script>
</html>
